package com.huluobo.base.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.huluobo.base.bean.OrderTypeBean

/**
 *  Created by LC on 2024/8/1.
 */
@Dao
interface OrderTypeDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertOrderType(orderTypeBean: OrderTypeBean)

    @Delete
    fun deleteOrderType(orderTypeBean: OrderTypeBean)

    @Update
    fun updateOrderType(orderTypeBean: OrderTypeBean)

    @Query("select * from order_type_info")
    fun queryOrderTypeBeans(): List<OrderTypeBean>

    @Query("delete  from order_type_info")
    fun deleteAllOrder()
}